{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/find_job_list.css">
{/strip}


{include file=$header_end}


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            <section class="title_box">
            	<h4>My Work Photos <a  href="{$siteroot}/myaccount/adduploadimage" class="btn rF" >Upload Work Photo</a></h4>
            	 <section class="clear"></section>
                 
                </section>                             
				{if $msg}<span style="padding:10px;"> {$msg} </span>{/if}
                  <section class="mainbox_findjobs">
                  
				<section class="uploadphoto_manag_box">
                <form name="searchfrm" id="searchfrm" action="{$siteroot}/myaccount/myuploadedphoto/" method="POST" >
                 <section class="group_search_box" style="padding-left:325px;">
                     <input type="text" name="search" id="search" class="input" value="{if $search neq ''}{$search}{else}Title{/if}" onfocus="this.value=''" onblur="if(this.value=='')this.value='Title'" />
                    <input type="submit" class="btn " value="Go">
                    &nbsp;&nbsp;
                    <input type="button" class="btn btnwdth70" value="Clear" onclick="javascript:window.location='{$siteroot}/myaccount/myuploadedphoto';">
                    <section class="clear"></section>
                  </section>
                  </form>
                	<dl>
                    	<dt class="col1" style="text-align:justify">Title</dt>
                    	<dt class="col2">Work Photo</dt>
                        <dt class="col3">Action</dt>
                        <section class="clear"></section>
                    </dl>
                    {section name=i loop=$imageArray}
                    <dl>
                    	<dd class="col1">{$imageArray[i].title}</dd>
                    	<dd class="col2"> <img src="{$siteroot}/includes/image.php?width=100&amp;height=100&amp;image={$siteroot}/uploads/tradesmanjobs/{$imageArray[i].image}" title="workphoto" alt="workphoto"/> </dd>
                        <dd class="col3"><a href="{$siteroot}/myaccount/{$imageArray[i].photo_id|base64_encode}/adduploadimage/" ><img src="{$siteroot}/templates/default/images/edit_icon.png" width="20" height="22" alt="Edit Photo" title="Edit Photo"/></a> &nbsp; <a href="{$siteroot}/myaccount/delete/{$imageArray[i].photo_id|base64_encode}/myuploadedphoto/" onclick="javascript:return confirm('Are you sure do you want to delete this record?');"><img src="{$siteroot}/templates/default/images/delete_icon.png" width="20" height="22" alt="Delete Photo" title="Delete Photo"/></a> </dd>
                        <section class="clear"></section>
                    </dl>
                    {sectionelse}
                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no images.</div>
                    {/section}
                  		{if $pagenation}
                            <section class="pagna">
                            {$pagenation}
                            </section>
                        {/if}
                             

                        
                        <section class="clear"></section>
                </section>   
                
                <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>  
                
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
{include file=$footer}
